<html>
<body>
    <script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script>
    <script>
    // var Gun = require('gun'); // in NodeJS
    // var Gun = require('gun/gun'); // in React
    var gun = Gun();
    
    gun.get('mark').put({
      name: "Mark",
      email: "mark@gunDB.io",
    });
    
    gun.get('mark').on(function(data, key){
      console.log("update:", data);
    });
    </script>
</body>
</html>